<template>
	<view class="wrap" style="padding-bottom: 60px;">
		<view v-if="current === 0">
			<view class="search">
				<u-search v-model="keywords" @custom="search" @search="search"></u-search>
			</view>
			<u-card class="task-list-item" :border="false" padding="20" margin="20rpx" @click="check(1)">
				<view slot="head" style="display: flex;align-items: center;justify-content: space-between;">
					<view style="display: flex;align-items: center;font-size: 30rpx;"><image class="user-images" src="/static/aidex/images/user06.png"></image>李毅的举报</view><view style="color: #999999;font-size: 22rpx;">2022年10月24日</view>
				</view>
				<view class="" slot="body">
					<u-row gutter="16">
						<u-col span="12">
							<view class="apply-text"><span>定位：</span>南岸区长生桥镇</view>
						</u-col>
						<u-col span="12">
							<view class="apply-text"><span>发现时间：</span>2022年10月25日14:30</view>
						</u-col>
						<u-col span="12">
							<view class="apply-text"><span>图片：</span></view>
						</u-col>
					</u-row>
				</view>
				<view class="apply-list-foot" slot="foot" style="text-align: right;color: #f28c03;">
					待审核
				</view>
			</u-card>
			<u-card class="task-list-item" :border="false" padding="20" margin="20rpx" @click="check(2)">
				<view slot="head" style="display: flex;align-items: center;justify-content: space-between;">
					<view style="display: flex;align-items: center;font-size: 30rpx;"><image class="user-images" src="/static/aidex/images/user06.png"></image>李毅的举报</view><view style="color: #999999;font-size: 22rpx;">2022年10月24日</view>
				</view>
				<view class="" slot="body">
					<u-row gutter="16">
						<u-col span="12">
							<view class="apply-text"><span>定位：</span>南岸区长生桥镇</view>
						</u-col>
						<u-col span="12">
							<view class="apply-text"><span>发现时间：</span>2022年10月25日14:30</view>
						</u-col>
						<u-col span="12">
							<view class="apply-text"><span>图片：</span></view>
						</u-col>
					</u-row>
				</view>
				<view class="apply-list-foot" slot="foot" style="text-align: right;color: #58ca93;">
					审核通过
				</view>
			</u-card>
			<u-card class="task-list-item" :border="false" padding="20" margin="20rpx" @click="check(2)">
				<view slot="head" style="display: flex;align-items: center;justify-content: space-between;">
					<view style="display: flex;align-items: center;font-size: 30rpx;"><image class="user-images" src="/static/aidex/images/user06.png"></image>李毅的举报</view><view style="color: #999999;font-size: 22rpx;">2022年10月24日</view>
				</view>
				<view class="" slot="body">
					<u-row gutter="16">
						<u-col span="12">
							<view class="apply-text"><span>定位：</span>南岸区长生桥镇</view>
						</u-col>
						<u-col span="12">
							<view class="apply-text"><span>发现时间：</span>2022年10月25日14:30</view>
						</u-col>
						<u-col span="12">
							<view class="apply-text"><span>图片：</span></view>
						</u-col>
					</u-row>
				</view>
				<view class="apply-list-foot" slot="foot" style="text-align: right;color: #58ca93;">
					审核通过
				</view>
			</u-card>
		</view>
		
	</view>
</template>
<script>
export default {
		data() {
			return {
			role: '',	
			show: false,
			list: [ {
				name: '查看数据',
			}],
			m2mSimflowList:[],
			m2mOrderFlowList:[],
			current: 0,
			status: 'loadmore',
			iconType: 'circle',
			isDot: false,
			loadText: {
						loadmore: '点击加载更多',
						loading: '正在加载...',
						nomore: '没有更多了'
			},
			}
		},
		created(){
		},
		onLoad() {
			this.role = this.vuex_config.role;
		},
		methods: {
			change(index) {
				this.current = index;
			},
			navTo(url) {
				uni.navigateTo({
					url: url
				});
			},
			check(status) {
				if(status == 1 && this.role == 1) {
					this.navTo('/pages/sys/workbench/add-form331')
				} else {
					this.navTo('/pages/sys/workbench/add-form332')
				}
			}
		}

	}
</script>
<style lang="scss" scoped>
@import 'index.scss';
page {
	background-color: #f5f5f5;
}
.wrap .search{
	background: #ffffff;
}
.apply-text{
	font-size: 28rpx;
	color: #333333;
	span{
		color: #999999;
	}
}
.user-images{
	width: 28px;
	height:28px;
	margin-right: 8px;
}
.apply-list-foot{
	font-size: 28rpx;
}
.personnel-list{
	display: flex;
	align-items: center;
	flex-wrap:wrap;
	.personnel-user{
		position: relative;
		margin: 5px 9px 0;
	}
	.user-images{
		width: 48px;
		height:48px;
		margin-right:0;
		
	}
	.iconfont{
		position: absolute;
		top:-12px;
		right:-5px;
		color: #FE0100;
	}
}
</style>
